<h3> Add New Tweet To Event</h3>
<?php
echo $this->Form->create('Event',array('action'=>'AddTweet'));
?>
 <!-- import the js and css files to be able to use the datepicker -->
<?php echo $this->Html->script('jquery-1.4.2.min.js'); ?>
<?php echo $this->Html->script('jquery-ui-1.8.4.custom.min.js'); ?>
<?php echo $this->Html->css('start/jquery-ui-1.8.4.custom.css'); ?>

<head>
 <!-- identify datepicker before calling it -->	
<script type="text/javascript">

			$(function(){

				// Datepicker
				$('#datepicker').datepicker({
					inline: true
				});

			});

			$(function(){

				// Datepicker
				$('#datepicker1').datepicker({
					inline: true
				});

			});


		</script>



</head>

<h4> New Tweet </h4>
<?php
echo $this->Form->input('Tweet', array('style' => 'height:100px'));

echo $this->Form->input('Repeated', array('type' => 'checkbox','style' => 'width:50px'));

echo $this->Form->input('ForceDeleteMode', array('type' => 'checkbox','style' => 'width:50px'));

echo $this->Form->input('eventID', array('type' => 'hidden', 'value' => $id));
?>

<h4> Start Date </h4>

<?php
/*
 *Description of the line echo $this->Form->input('Date1 (dd/mm/yyyy)', array('type' => 'text',
                                            'id' => 'datepicker','style' => 'width:150px'));
 *
 *adding datepicker to the textbox and setting the size of the textbox
 *
 *@author Youssef Madkour
 */
echo $this->Form->input('Start Date', array('type' => 'text',
                                            'id' => 'datepicker','style' => 'width:150px'));

	  
echo $this->Form->input('Clock1 (hh:mm)', array('style' => 'width:150px'));

echo $this->Form->input('End Date', array('type' => 'text',
                                            'id' => 'datepicker1','style' => 'width:150px'));
?>


<h4> Repetitions </h4>

<?php
echo $this->Form->input('NumberOfRepetitions', array('type' => 'integer','style' => 'width:150px'));
echo $this->Form->input('MaxNoOfRepetitionsPerDay', array('type' => 'integer','style' => 'width:150px'));

echo $this->Form->end('AddTweet');
?>
